import {
  ChromeFilled,
  CrownFilled,
  SmileFilled,
  TabletFilled,
} from '@ant-design/icons';

export default {
  route: {
    path: '/',
    routes: [
      {
        path: '/home/house/housecontrol/list',
        name: '楼盘',
        icon: <CrownFilled />,
        access: 'canAdmin',
        routes: [
          {
            path: '/home/house/housecontrol',
            name: '楼盘管理',
            icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
            routes: [
              {
                path: '/home/house/housecontrol/list',
                name: '楼盘列表',
              },
              {
                path: '/home/house/housecontrol/add',
                name: '添加楼盘',
              },
            ],
          },
          {
            path: '/home/house/develop',
            name: '开发商',
            icon: <CrownFilled />,
          },
          {
            path: '/home/house/group',
            name: '团购管理',
            icon: <CrownFilled />,
          },
        ],
      },
      {
        name: '客服',
        icon: <TabletFilled />,
        path: '/home/serve',
        routes: [
          {
            path: '/home/serve/messall',
            name: '客服信息总览',
            icon: <CrownFilled />,
          },
          {
            path: '/home/serve/list',
            name: '客服列表',
            icon: <CrownFilled />,
          },
          {
            path: '/home/serve/control',
            name: '会话管理',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/home/serve/control/tour',
                name: '游客列表',
                icon: <CrownFilled />,
              },
              {
                path: '/home/serve/control/serv',
                name: '服务记录',
                icon: <CrownFilled />,
              },
              {
                path: '/home/serve/control/chat',
                name: '聊天记录',
                icon: <CrownFilled />,
              },
            ],
          },
        ],
      },
      {
        name: '二手/出租',
        icon: <TabletFilled />,
        path: '/home/rent',
        routes: [
          {
            path: '/home/rent/ground',
            name: '小区管理',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/home/rent/ground/control',
                name: '小区管理',
              },
            ],
          },
          {
            path: '/home/rent/second',
            name: '二手房',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/home/rent/second/control',
                name: '房源管理',
              },
              {
                path: '/home/rent/second/add',
                name: '添加房源',
              },
            ],
          },
          {
            path: '/home/rent/rhouse',
            name: '出租房',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/home/rent/rhouse/control',
                name: '房源管理',
                icon: <CrownFilled />,
              },
              {
                path: '/home/rent/rhouse/add',
                name: '添加房源',
                icon: <CrownFilled />,
              },
            ],
          },
        ],
      },
      {
        name: '商业',
        icon: <TabletFilled />,
        path: '/home/shop',
        routes: [
          {
            path: '/home/shop/build',
            name: '写字楼',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/home/shop/build/sale',
                name: '出售管理',
              },
              {
                path: '/home/shop/build/rent',
                name: '出租管理',
              },
            ],
          },
          {
            path: '/home/shop/market',
            name: '商铺',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/home/shop/market/sale',
                name: '出售管理',
              },
              {
                path: '/home/shop/market/rent',
                name: '出租管理',
              },
            ],
          },
        ],
      },
    ],
  },
  location: {
    pathname: '/',
  },
};
